package ncit.npe.example;
import java.util.Random;


public class RandomInt implements RandomNumber {

	Integer value;
	int iterations;
	
	public RandomInt(int iterations) {
		this.iterations = iterations;
	}
	
	@Override
	public void printRandomNumbers() {
		for (int i = 0; i < iterations; i++) {
			value = new Random().nextInt(100);
			value = (Integer) BlackBox.doMagic(value);
			System.out.println(this.getClass() + " has generated " + value.intValue());
		}
	}

}
